package com.kandroid.designpattern.state.demo2.states;

import com.kandroid.designpattern.state.demo2.ATMAction;
import com.kandroid.designpattern.state.demo2.ATMState;
import com.kandroid.designpattern.state.demo2.BaseStateClass;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class NoBankCardState extends BaseStateClass {
    public NoBankCardState(ATMAction atmAction) {
        super(atmAction);
    }

    @Override
    protected List<String> getSupportedActions() {
        return Arrays.asList(ACTION_INSERT_BANKCARD);
    }

    @Override
    public String getName() {
        return ATMState.STATE_NO_BANKCARD;
    }
}
